package com.ruoyi.teaching.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.teaching.mapper.YaStudentInterviewRecordMapper;
import com.ruoyi.teaching.domain.YaStudentInterviewRecord;
import com.ruoyi.teaching.service.IYaStudentInterviewRecordService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
/**
 * 学生面试题练习记录Service业务层处理
 *
 * @author ruoyi
 * @date 2025-03-22
 */
@Service
public class YaStudentInterviewRecordServiceImpl extends ServiceImpl<YaStudentInterviewRecordMapper,YaStudentInterviewRecord> implements IYaStudentInterviewRecordService
{
    @Autowired
    private YaStudentInterviewRecordMapper yaStudentInterviewRecordMapper;

    /**
     * 查询学生面试题练习记录
     *
     * @param id 学生面试题练习记录主键
     * @return 学生面试题练习记录
     */
    @Override
    public YaStudentInterviewRecord selectYaStudentInterviewRecordById(Long id)
    {
        return yaStudentInterviewRecordMapper.selectYaStudentInterviewRecordById(id);
    }

    /**
     * 查询学生面试题练习记录列表
     *
     * @param yaStudentInterviewRecord 学生面试题练习记录
     * @return 学生面试题练习记录
     */
    @Override
    public List<YaStudentInterviewRecord> selectYaStudentInterviewRecordList(YaStudentInterviewRecord yaStudentInterviewRecord)
    {
        return yaStudentInterviewRecordMapper.selectYaStudentInterviewRecordList(yaStudentInterviewRecord);
    }

    /**
     * 新增学生面试题练习记录
     *
     * @param yaStudentInterviewRecord 学生面试题练习记录
     * @return 结果
     */
    @Override
    public int insertYaStudentInterviewRecord(YaStudentInterviewRecord yaStudentInterviewRecord)
    {
        return yaStudentInterviewRecordMapper.insertYaStudentInterviewRecord(yaStudentInterviewRecord);
    }

    /**
     * 修改学生面试题练习记录
     *
     * @param yaStudentInterviewRecord 学生面试题练习记录
     * @return 结果
     */
    @Override
    public int updateYaStudentInterviewRecord(YaStudentInterviewRecord yaStudentInterviewRecord)
    {
        return yaStudentInterviewRecordMapper.updateYaStudentInterviewRecord(yaStudentInterviewRecord);
    }

    /**
     * 批量删除学生面试题练习记录
     *
     * @param ids 需要删除的学生面试题练习记录主键
     * @return 结果
     */
    @Override
    public int deleteYaStudentInterviewRecordByIds(Long[] ids)
    {
        return yaStudentInterviewRecordMapper.deleteYaStudentInterviewRecordByIds(ids);
    }

    /**
     * 删除学生面试题练习记录信息
     *
     * @param id 学生面试题练习记录主键
     * @return 结果
     */
    @Override
    public int deleteYaStudentInterviewRecordById(Long id)
    {
        return yaStudentInterviewRecordMapper.deleteYaStudentInterviewRecordById(id);
    }
}
